import { Browser } from 'puppeteer-core';

export interface BrowserStatus {
  isRunning: boolean;
  lastChecked: number;
  inProgress: boolean;
  action?: 'starting' | 'stopping';
}

export interface BrowserInstance {
  id: string;
  browser: Browser;
  config: BrowserConfig;
  status: BrowserStatus;
}

// 代理配置接口
export interface ProxyConfig {
  enabled: boolean;
  host: string;
  port: number;
  username?: string;
  password?: string;
  type: 'http' | 'https' | 'socks4' | 'socks5';
}

export interface BrowserConfig {
  id: string;
  name: string;
  userAgent?: string;
  proxy?: ProxyConfig;
} 